\section{fsm\+\_\+slave\+\_\+scan.\+h File Reference}
\label{fsm__slave__scan_8h}\index{fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}}


Ether\+C\+AT slave scanning state machine.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan}
\begin{DoxyCompactList}\small\item\em Finite state machine for scanning an Ether\+C\+AT slave. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan} \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{fsm__slave__scan_8h_a7912e997b054006bbaead33b64ef4dda}} 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+init} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$, \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+config\+\_\+t} $\ast$, \textbf{ ec\+\_\+fsm\+\_\+pdo\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__slave__scan_8h_ad6d93f28242bb84c1e3310b54183bfd5}} 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+clear} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__slave__scan_8h_aecd8f803a19c3d4cbe77e0a25a84c388}} 
void \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+start} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$, \textbf{ ec\+\_\+slave\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Start slave scan state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec} (\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Executes the current state of the state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success} (const \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT slave scanning state machine. 



\subsection{Typedef Documentation}
\mbox{\label{fsm__slave__scan_8h_af779dfb24a2c28e995f2080786b5f56f}} 
\index{fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}!ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t@{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t@{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t}!fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t}
{\footnotesize\ttfamily typedef struct \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan} \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t}}

\begin{DoxySeeAlso}{See also}
\doxyref{ec\+\_\+fsm\+\_\+slave\+\_\+scan}{p.}{structec__fsm__slave__scan} 
\end{DoxySeeAlso}


Definition at line 51 of file fsm\+\_\+slave\+\_\+scan.\+h.



\subsection{Function Documentation}
\mbox{\label{fsm__slave__scan_8h_af1d834da98e531e644bbc86b224df697}} 
\index{fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}!ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec@{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec@{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec}!fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+exec (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Executes the current state of the state machine. 

If the state machine\textquotesingle{}s datagram is not sent or received yet, the execution of the state machine is delayed to the next cycle. \begin{DoxyReturn}{Returns}
false, if state machine has terminated 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & slave state machine \\
\hline
\end{DoxyParams}


Definition at line 141 of file fsm\+\_\+slave\+\_\+scan.\+c.

\mbox{\label{fsm__slave__scan_8h_a9a4806351b9f9497139c248360804408}} 
\index{fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}!ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success@{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success}}
\index{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success@{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success}!fsm\+\_\+slave\+\_\+scan.\+h@{fsm\+\_\+slave\+\_\+scan.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+success (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+fsm\+\_\+slave\+\_\+scan\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}

\begin{DoxyReturn}{Returns}
true, if the state machine terminated gracefully 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & slave state machine \\
\hline
\end{DoxyParams}


Definition at line 159 of file fsm\+\_\+slave\+\_\+scan.\+c.

